Python3Script Xojo Plugin

Python3XojoClass Class (console safe)

A class to create new Python 3 classes from Xojo.

In this version there is only support for creating classes with methods, no properties.

Python3Object
   Python3XojoClass

class Python3XojoClass

Constructors

Python3XojoClass (console safe) Constructor that takes name and address of a init method.

Properties

Name (Inherited) (console safe) Returns the name of the object.

Methods

shared DataGets Xojo object storage from the Python class.
shared DataSets Xojo object as the Data of the Python class.
RegisterFunction (console safe) Registers a Xojo function to expose to Python via this class
RegisterGetterSetter (console safe) Registers Getter and or Setter to the class.
SetHashFunction (console safe) Optionally sets hash function for your class which gets used by the Python hash() operator.
SetToStringFunction (console safe) Optionally sets str function for your class which gets used by the Python str() operator.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit